1940s, from hand (n.) + job.
An act of masturbation, usually done for one person by another: rolled over on top of me and started giving me a real good hand job/ If you were unlucky, all you got was a hand job (1940s+)